﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using VietStar.Library.Entity;
using VietStar.Library.Data;

namespace VietStar.Library.Business
{
    public class ProductBusiness
    {
        public ProductBusiness() { }
        ProductData data = new ProductData();
        ProductEntity entity = new ProductEntity();
        public List<ProductEntity> GetAll()
        {
            return data.GetAll();
        }
        public List<ProductEntity> GetById(int Id)
        {
            return data.GetById(Id);
        }
        public bool Insert(ProductEntity entity)
        {
            return data.Insert(entity);
        }
        public bool Update(ProductEntity entity)
        {
            return data.Update(entity);
        }
        public bool Delete(int Id)
        {
            return data.Delete(Id);
        }
    }
}
